#!/bin/bash
# Set max_artifacts_size using api
setMaxArtifactSizeForGitlab() {
  curl --request PUT --header "PRIVATE-TOKEN: $GITLAB_ADMIN_TOKEN" "gitlab.$INSTANCE_HOST"/"api/v4/application/settings?max_artifacts_size=5120"
}

# Set max_attachment_size using api
setMaxAttachmentSizeForGitlab() {
  curl --request PUT --header "PRIVATE-TOKEN: $GITLAB_ADMIN_TOKEN" "gitlab.$INSTANCE_HOST"/"api/v4/application/settings?max_attachment_size=5120"
}

# Set container_registry_token_expire_delay api
setContainerRegistryTokenExpireDelayForGitlab() {
  curl --request PUT --header "PRIVATE-TOKEN: $GITLAB_ADMIN_TOKEN" "gitlab.$INSTANCE_HOST"/"api/v4/application/settings?container_registry_token_expire_delay=30"
}

